package com.atguigu.MultThread;

import java.util.concurrent.Semaphore;
public class UseSemphoreToAdd {
    public int count=0;
    public static void main(String[] args) {
        Semaphore semaphore=new Semaphore(1);
        Thread thread=new Thread(()->{
            for(int i=0;i<10;i++){

            }
        });
    }
}
